import request from '@/utils/request'

// 查询积分抽奖奖品配置列表
export function listLotteryConfig(query) {
  return request({
    url: '/core/lotteryConfig/list',
    method: 'get',
    params: query
  })
}

// 查询积分抽奖奖品配置详细
export function getLotteryConfig(id) {
  return request({
    url: '/core/lotteryConfig/' + id,
    method: 'get'
  })
}

// 新增积分抽奖奖品配置
export function addLotteryConfig(data) {
  return request({
    url: '/core/lotteryConfig',
    method: 'post',
    data: data
  })
}

// 修改积分抽奖奖品配置
export function updateLotteryConfig(data) {
  return request({
    url: '/core/lotteryConfig',
    method: 'put',
    data: data
  })
}

// 删除积分抽奖奖品配置
export function delLotteryConfig(id) {
  return request({
    url: '/core/lotteryConfig/' + id,
    method: 'delete'
  })
}
